package cn.lingyangwl.agile.food.core.model.rqrs.order;

import cn.lingyangwl.agile.food.core.model.rqrs.cart.CartResp;
import cn.lingyangwl.agile.food.model.rqrs.store.StoreResp;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 确认订单响应
 *
 * @author shenguangyang
 */
@Data
public class CartOrderConfirmResp {
    @ApiModelProperty(value = "门店信息")
    private StoreResp store;

    @ApiModelProperty(value = "订单信息")
    private Info orderInfo;

    @ApiModelProperty(value = "消息模板")
    private List<String> templateList;

    @Data
    public static class Info {
        @ApiModelProperty(value = "商品")
        private List<CartResp.Goods> goodsList;

        @ApiModelProperty(value = "商品总价格-不包含包装费, 这些额外价格")
        private BigDecimal goodsPrice;

        @ApiModelProperty(value = "总数量")
        private Integer totalNum;

        @ApiModelProperty(value = "需要支付的价格")
        private BigDecimal payPrice;

        @ApiModelProperty(value = "餐桌id")
        private Long tableId;

        @ApiModelProperty(value = "餐桌编号")
        private String tableNo;

        @ApiModelProperty(value = "包装价格")
        private BigDecimal bagPrice;

        @ApiModelProperty(value = "最后自提信息")
        private SelfExtract selfExtract;

        @ApiModelProperty(value = "配送价格")
        private BigDecimal expressPrice = BigDecimal.ZERO;
    }
}
